<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>账号登录</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>

    <style type="text/css">
        .login-container{
            width: 400px;
            margin: auto;
        }
        .login-nav{
            width: 400px;
            height: 40px;
            padding: 27px 0 24px;
            text-align: center;
            line-height: 0px;
            font-size: 20px;
            color: #666;
        }
    </style>

</head>
<body>
<div class="login-container">
    <div class="login-nav">
        <a href="">管理员账号登录</a>
    </div>
    <!-- input框 -->
    <form  METHOD="post" novalidate>
        {% csrf_token %}
        <div class="form-group">
<!--            方法一-->
            <label>用户名</label>
            {{form.name}}
            <div style="color: red">{{form.name.errors.0}}</div>
            <label>密码</label>
            {{form.password}}
            <div style="color: red">{{form.password.errors.0}}</div>
<!--            方法二 -- 好像不能显示错误信息 -->
<!--            {{form}}-->

<!--            <input type="text" name="" id="" class="form-control" placeholder="姓名">-->
        </div>
<!--        <div class="form-group">-->
<!--            <label>密码</label>-->
<!--            <input type="password" name="" id="" class="form-control" placeholder="密码">-->
<!--        </div>-->
<!--        <div class="form-group row">-->
<!--            <label for="" class="col-md-offset-1"><input type="checkbox" name="" id="">记住密码</label>-->
<!--            <label for="" class="col-md-offset-1"><input type="checkbox" name="" id="" class="">自动登录</label>-->
<!--            <label for="" class="col-md-offset-4"><a href="" class="">找回密码</a></label>-->
<!--        </div>-->
        <div class="form-group">
            <button type="submit" class="btn btn-primary btn-block">登录</button>
        </div>
    </form>
</div>
</body>
</html>
